package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.CHANGE_ADDRESS)
public class ConnAddAddress extends BaseAsyPost<CommenBean> {

    public String member_id, username, mobile, city, address,status;
    public String id;

    public ConnAddAddress(String id, String member_id, String username, String mobile, String city, String address, String status, AsyCallBack<CommenBean> asyCallBack) {
        super(asyCallBack);
        this.id = id;
        this.member_id = member_id;
        this.member_id = member_id;
        this.username = username;
        this.mobile=mobile;
        this.city = city;
        this.address = address;
        this.status = status;
    }

    @Override
    protected CommenBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();

        CommenBean loginBean = new CommenBean();

        loginBean = gson.fromJson(object.toString(), CommenBean.class);


        return loginBean;


    }
}



